﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text;

namespace Demo0616
{
    class StuAge : IComparer<Student>
    {
        //学生年龄
        public int Compare(Student x,Student y)
        {
            return x.Age.CompareTo(y.Age);
        }
    }
}
